/*
	Square is a sub class of Shape.

	It has a private field  of type double that represents the side length.

	It has a constructor that accepts a single parameter of type double
	that represents the side length.  The constructor calls the Shape constructor
	to set the name to Square.

	It has an overridden area method that returns the area of the square.

*/

public class Square /*ans bl*/extends Shape/*ans ab*/
{

/*ans bl*/
	private double _length;

	public Square(double length)
	{
		super("Square");
		_length = length;

	}

	public double area()
	{
		return _length * _length;

	}//end area override
/*ans ab*/


}//end class Square